<template>
  <div>
    <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
      <van-swipe-item v-for="item of data" :key="item.id">
        <img class="swiper_img" :src="item.imgSrc" alt="" />
      </van-swipe-item>
    </van-swipe>
  </div>
</template>

<script>
export default {
    props:{
      data:{
       type:Array
      },
    }
}
</script>

<style>
  .my-swipe .van-swipe-item {
    color: #fff;
    font-size: 20px;
    line-height: 150px;
    width: 100%;
    max-height: 550px;
    text-align: center;
  }
.swiper_img {
  width: 100%;
  max-height: 400px;
}
.van-swipe__indicators{
  bottom: 1.16rem;
}
</style>